package map;

import java.util.LinkedHashMap;
import java.util.Map;

public class LinkedHashMapDemo {
    public static void main(String[] args) {
        //Map<String,Integer>map = new LinkedHashMap<>();
        Map<String,Integer>map = new LinkedHashMap<>(10,0.75f,true);
        map.put("语文",60);
        map.put("数学",99);
        map.put("英语",65);
        map.put("物理",98);
        map.put("化学",97);
        System.out.println(map);

        Integer value = map.get("数学");
        System.out.println(value);
        System.out.println(map);
        map.get("语文");
        map.get("英语");
        System.out.println(map);
    }
}
